using System.Collections.Generic;

namespace CodeGears.WorkItemTracking.ChartingDashboard.Domain
{
    public class Project
    {
        public Microsoft.TeamFoundation.WorkItemTracking.Client.Project TfsProject { get; private set; }

        public Project(Microsoft.TeamFoundation.WorkItemTracking.Client.Project tfsProject)
        {
            TfsProject = tfsProject;
        }

        public override string ToString()
        {
            return TfsProject.Name;
        }

        public List<Query> GetQueries()
        {
            var queries = new List<Query>();
            foreach (Microsoft.TeamFoundation.WorkItemTracking.Client.StoredQuery query in TfsProject.StoredQueries)
            {
                queries.Add(new Query(query));
            }

            return queries;
        }
    }
}